<%@page import="salary.SalaryMyba"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>사원등록 결과창</title>
<script>
function registration() {
	location.href='index.jsp?inc_content=./salary/salary_list.jsp';
}
</script>
</head>
<body>
	<jsp:useBean id="vo" class="salary.SalaryVo" />
    <jsp:setProperty property="*" name="vo"/>
	<%
		vo.setRequest(request);
		SalaryMyba salary = new SalaryMyba();
		salary.setSalaryvo(vo);
		if (salary.insert()) {
	%>
	
	
	<script>
		alert("등록되었습니다");
		registration();
		</script>
	<%
		} else {
	%>
		실패!! 다시한번 도전하세요!!!!!
	<%}%>

		
  <input type="button" value="목록" onclick="location.href='index.jsp?inc_content=./salary/salary_list.jsp'"> 
</body>
</html>